//
//  DatePickerView.h
//  时间选择器_test_2
//
//  Created by 1234 on 14-12-25.
//  Copyright (c) 2014年 test. All rights reserved.
//


typedef enum {
    timeDetail = 0,//具体时间(时 分)
    timeChinese = 1,//今天，明天，后天(日 时 分)
    dateDetail = 2,//日期选择(年 月 日)
    timeAndDateDetail//具体年月日和时间
} TimeType;

@class DatePickerView;
@protocol DatePickerViewDelegate <NSObject>
@optional
-(void)datePickerView:(DatePickerView *)pickerView selectDate:(NSDate *)result;
@end

@interface DatePickerView : UIView


@property (nonatomic, strong, readonly) NSDate *date;
@property (nonatomic,weak) id<DatePickerViewDelegate> delegate;
-(id)initWithWidth:(float)width Height:(float)height TimeType:(TimeType)tType WithTitle:(NSString*)title;

@end
